package com.itheima.tcp;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class KehuClient {
    public static void main(String[] args) throws IOException {
        //1.创建客户端对象
        Socket socket = new Socket("192.168.13.61",10086);
        //2.获取输出流
        OutputStream os = socket.getOutputStream();
        //3.输出流写东西
        os.write("你瞅啥".getBytes());


        //4.释放资源
        socket.close();

    }

}
